<html>
<head>
<script>
$(document).ready(function(){
    $("#loader").click(function(){
                // Load the page into the div
        $("#resultreturn").load("JSP/login.jsp");
                // Show the modal dialog
        $("#resultreturn").dialog({ modal: true });
    });
});

</script>

</head>

<body>
<div id="resultreturn" style="display: none"></div>
<form>
<input type="button" value="click here to open modal window" id="loader"/>
</form>

</body>
</html>


